home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Know Your Hockey - The Greatest Player Resource
/
Know Your Hockey: The Greatest Player Resource.iso
/
hockey
/
director
/
ssqcst.cst
/
00034_Script_Load Starter Media
< prev
next >
Wrap
Text File
|
1998-09-28
|
3KB
|
107 lines
global gButtonState,gClipOut,gXCast,gSoundlevel
-- attach this button to the pro button to display the intro play video
-- these two scripts also alter the gTheBench property list to load the intro coach and announcer sounds
-- the opening description audio file is placed in the first exit frame script of the movie be called
-- hard script the name of the intro videos here ( in bold)
on IntroPro theone
if the type of sprite 48 > 0 then set the movierate of sprite 48 = 0
ClearTheDeck
puppetsprite 48, 1
set the type of sprite 48 = 0
set the membernum of sprite 48 = 0
updatestage
puppetsound 0
set the type of sprite 48 = 16
set the membernum of sprite 48 = theone
set the ink of sprite 48 = 32
set the locv of sprite 48 = 104
set the loch of sprite 48 = 148
set the visible of sprite 48 =1
clearIconStatus
-- sets the end point for the script videoplayer
set gClipOut = the duration of member theone -30
updateStage
set the movierate of sprite 48 = 0
set the membernum of sprite 3 = member "play"
set the blend of sprite 3 = 100
setVideoVolume
updateStage
end
on IntroJr theone
if the type of sprite 48 > 0 then set the movierate of sprite 48 = 0
losepop(window "pop")
ClearTheDeck
puppetsprite 48, 1
set the type of sprite 48 = 0
set the membernum of sprite 48 = 0
updatestage
puppetsound 0
set the type of sprite 48 = 16
set the membernum of sprite 48 = theone
set the ink of sprite 48 = 32
set the locv of sprite 48 = 104
set the loch of sprite 48 = 148
set the visible of sprite 48 =1
clearIconStatus
-- sets the end point for the script videoplayer
set gClipOut = the duration of member theone -30
updateStage
set the movierate of sprite 48 = 0
set the membernum of sprite 3 = member "play"
set the blend of sprite 3 = 100
setvideovolume
updateStage
end
--- this script clears the screen if the pro or junoir button is selected
-- when a card is on the screen
on ClearTheDeck
-- turns of f the card and text card
repeat with x = 5 to 9
set the membernum of sprite x =0
set the type of sprite x = 0
end repeat
-- clear the card slider
repeat with x = 28 to 30
set the membernum of sprite x =0
set the type of sprite x = 0
end repeat
clearIconStatus -- clean the icon hilite list
-- turns off the icon cards
repeat with x = 42 to 46
set the membernum of sprite x =0
set the type of sprite x = 0
end repeat
end
-- looks at gButtonState to see if an Icon has been selected
-- if it has then is double checks to see if a member exists in the sprite
-- after this is resets the membernum of the sprite to the off member
-- this script is also used by the player handler
on clearIconStatus
repeat with x = 44 to 46
set test = getat(gButtonState,x)
if test > 0 and the membernum of sprite x > 0 then
set i = the membernum of sprite x
set the membernum of sprite x = i-1
setat(gButtonState,X,0)
updatestage
exit repeat -- should only be one hilited so we can exit here to save a bit of time
end if
end repeat
end